VideoContentDetails.fromJson constructor

VideoContentDetails.fromJson(
  1. Map json_
)

Implementation

VideoContentDetails.fromJson(core.Map json_)
    : this(
        caption: json_.containsKey('caption')
            ? json_['caption'] as core.String
            : null,
        contentRating: json_.containsKey('contentRating')
            ? ContentRating.fromJson(
                json_['contentRating'] as core.Map<core.String, core.dynamic>)
            : null,
        countryRestriction: json_.containsKey('countryRestriction')
            ? AccessPolicy.fromJson(json_['countryRestriction']
                as core.Map<core.String, core.dynamic>)
            : null,
        definition: json_.containsKey('definition')
            ? json_['definition'] as core.String
            : null,
        dimension: json_.containsKey('dimension')
            ? json_['dimension'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        hasCustomThumbnail: json_.containsKey('hasCustomThumbnail')
            ? json_['hasCustomThumbnail'] as core.bool
            : null,
        licensedContent: json_.containsKey('licensedContent')
            ? json_['licensedContent'] as core.bool
            : null,
        projection: json_.containsKey('projection')
            ? json_['projection'] as core.String
            : null,
        regionRestriction: json_.containsKey('regionRestriction')
            ? VideoContentDetailsRegionRestriction.fromJson(
                json_['regionRestriction']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );