VideoFileDetails.fromJson constructor

VideoFileDetails.fromJson(
  1. Map json_
)

Implementation

VideoFileDetails.fromJson(core.Map json_)
    : this(
        audioStreams: json_.containsKey('audioStreams')
            ? (json_['audioStreams'] as core.List)
                .map((value) => VideoFileDetailsAudioStream.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bitrateBps: json_.containsKey('bitrateBps')
            ? json_['bitrateBps'] as core.String
            : null,
        container: json_.containsKey('container')
            ? json_['container'] as core.String
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        durationMs: json_.containsKey('durationMs')
            ? json_['durationMs'] as core.String
            : null,
        fileName: json_.containsKey('fileName')
            ? json_['fileName'] as core.String
            : null,
        fileSize: json_.containsKey('fileSize')
            ? json_['fileSize'] as core.String
            : null,
        fileType: json_.containsKey('fileType')
            ? json_['fileType'] as core.String
            : null,
        videoStreams: json_.containsKey('videoStreams')
            ? (json_['videoStreams'] as core.List)
                .map((value) => VideoFileDetailsVideoStream.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );