VideoStatus.fromJson constructor

VideoStatus.fromJson(
  1. Map json_
)

Implementation

VideoStatus.fromJson(core.Map json_)
    : this(
        embeddable: json_.containsKey('embeddable')
            ? json_['embeddable'] as core.bool
            : null,
        failureReason: json_.containsKey('failureReason')
            ? json_['failureReason'] as core.String
            : null,
        license: json_.containsKey('license')
            ? json_['license'] as core.String
            : null,
        madeForKids: json_.containsKey('madeForKids')
            ? json_['madeForKids'] as core.bool
            : null,
        privacyStatus: json_.containsKey('privacyStatus')
            ? json_['privacyStatus'] as core.String
            : null,
        publicStatsViewable: json_.containsKey('publicStatsViewable')
            ? json_['publicStatsViewable'] as core.bool
            : null,
        publishAt: json_.containsKey('publishAt')
            ? core.DateTime.parse(json_['publishAt'] as core.String)
            : null,
        rejectionReason: json_.containsKey('rejectionReason')
            ? json_['rejectionReason'] as core.String
            : null,
        selfDeclaredMadeForKids: json_.containsKey('selfDeclaredMadeForKids')
            ? json_['selfDeclaredMadeForKids'] as core.bool
            : null,
        uploadStatus: json_.containsKey('uploadStatus')
            ? json_['uploadStatus'] as core.String
            : null,
      );