CaptionSnippet.fromJson constructor

CaptionSnippet.fromJson(
  1. Map json_
)

Implementation

CaptionSnippet.fromJson(core.Map json_)
    : this(
        audioTrackType: json_.containsKey('audioTrackType')
            ? json_['audioTrackType'] as core.String
            : null,
        failureReason: json_.containsKey('failureReason')
            ? json_['failureReason'] as core.String
            : null,
        isAutoSynced: json_.containsKey('isAutoSynced')
            ? json_['isAutoSynced'] as core.bool
            : null,
        isCC: json_.containsKey('isCC') ? json_['isCC'] as core.bool : null,
        isDraft: json_.containsKey('isDraft')
            ? json_['isDraft'] as core.bool
            : null,
        isEasyReader: json_.containsKey('isEasyReader')
            ? json_['isEasyReader'] as core.bool
            : null,
        isLarge: json_.containsKey('isLarge')
            ? json_['isLarge'] as core.bool
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        lastUpdated: json_.containsKey('lastUpdated')
            ? core.DateTime.parse(json_['lastUpdated'] as core.String)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        trackKind: json_.containsKey('trackKind')
            ? json_['trackKind'] as core.String
            : null,
        videoId: json_.containsKey('videoId')
            ? json_['videoId'] as core.String
            : null,
      );