toMap method
Implementation
Map<String, dynamic> toMap() {
final result = <String, dynamic>{};
result.addAll({'id': id});
result.addAll({'active': active});
result.addAll({'type': type});
result.addAll({'bandwidth': bandwidth});
result.addAll({'language': language});
if (label != null) {
result.addAll({'label': label!});
}
if (kind != null) {
result.addAll({'kind': kind!});
}
if (width != null) {
result.addAll({'width': width!});
}
if (height != null) {
result.addAll({'height': height!});
}
result.addAll({'frameRate': frameRate});
if (pixelAspectRatio != null) {
result.addAll({'pixelAspectRatio': pixelAspectRatio!});
}
if (hdr != null) {
result.addAll({'hdr': hdr!});
}
if (mimeType != null) {
result.addAll({'mimeType': mimeType!});
}
if (audioMimeType != null) {
result.addAll({'audioMimeType': audioMimeType!});
}
if (videoMimeType != null) {
result.addAll({'videoMimeType': videoMimeType!});
}
if (codecs != null) {
result.addAll({'codecs': codecs!});
}
if (audioCodec != null) {
result.addAll({'audioCodec': audioCodec!});
}
if (videoCodec != null) {
result.addAll({'videoCodec': videoCodec!});
}
result.addAll({'primary': primary});
result.addAll({'roles': roles});
result.addAll({'audioRoles': audioRoles});
result.addAll({'accessibilityPurpose': accessibilityPurpose});
result.addAll({'forced': forced});
if (videoId != null) {
result.addAll({'videoId': videoId!});
}
if (audioId != null) {
result.addAll({'audioId': audioId!});
}
if (channelsCount != null) {
result.addAll({'channelsCount': channelsCount!});
}
if (audioSamplingRate != null) {
result.addAll({'audioSamplingRate': audioSamplingRate!});
}
if (tilesLayout != null) {
result.addAll({'tilesLayout': tilesLayout!});
}
result.addAll({'spatialAudio': spatialAudio});
if (audioBandwidth != null) {
result.addAll({'audioBandwidth': audioBandwidth!});
}
if (videoBandwidth != null) {
result.addAll({'videoBandwidth': videoBandwidth!});
}
if (originalVideoId != null) {
result.addAll({'originalVideoId': originalVideoId!});
}
if (originalAudioId != null) {
result.addAll({'originalAudioId': originalAudioId!});
}
if (originalTextId != null) {
result.addAll({'originalTextId': originalTextId!});
}
if (originalImageId != null) {
result.addAll({'originalImageId': originalImageId!});
}
if (originalLanguage != null) {
result.addAll({'originalLanguage': originalLanguage!});
}
return result;
}