Track.fromMap constructor
Implementation
factory Track.fromMap(Map<String, dynamic> map) {
return Track(
id: (map['id']),
active: (map['active']),
type: (map['type']),
bandwidth: (map['bandwidth']),
language: (map['language']),
label: map['label'] != null ? (map['label']) : null,
kind: map['kind'] != null ? (map['kind']) : null,
width: map['width'] != null ? (map['width']) : null,
frameRate: (map['frameRate']),
height: map['height'],
pixelAspectRatio:
map['pixelAspectRatio'] != null ? (map['pixelAspectRatio']) : null,
hdr: map['hdr'] != null ? (map['hdr']) : null,
mimeType: map['mimeType'] != null ? (map['mimeType']) : null,
audioMimeType:
map['audioMimeType'] != null ? (map['audioMimeType']) : null,
videoMimeType:
map['videoMimeType'] != null ? (map['videoMimeType']) : null,
codecs: map['codecs'] != null ? (map['codecs']) : null,
audioCodec: map['audioCodec'] != null ? (map['audioCodec']) : null,
videoCodec: map['videoCodec'] != null ? (map['videoCodec']) : null,
primary: (map['primary']),
roles: (map['roles']),
audioRoles: (map['audioRoles']),
accessibilityPurpose: map['accessibilityPurpose'],
forced: (map['forced']),
videoId: map['videoId'] != null ? (map['videoId']) : null,
audioId: map['audioId'] != null ? (map['audioId']) : null,
channelsCount:
map['channelsCount'] != null ? (map['channelsCount']) : null,
audioSamplingRate:
map['audioSamplingRate'] != null ? (map['audioSamplingRate']) : null,
tilesLayout: map['tilesLayout'] != null ? (map['tilesLayout']) : null,
spatialAudio: (map['spatialAudio']),
audioBandwidth:
map['audioBandwidth'] != null ? (map['audioBandwidth']) : null,
videoBandwidth:
map['videoBandwidth'] != null ? (map['videoBandwidth']) : null,
originalVideoId:
map['originalVideoId'] != null ? (map['originalVideoId']) : null,
originalAudioId:
map['originalAudioId'] != null ? (map['originalAudioId']) : null,
originalTextId:
map['originalTextId'] != null ? (map['originalTextId']) : null,
originalImageId:
map['originalImageId'] != null ? (map['originalImageId']) : null,
originalLanguage:
map['originalLanguage'] != null ? (map['originalLanguage']) : null,
);
}