31 lines
1.0 KiB
Dart
31 lines
1.0 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'closed_caption_track_info.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
ClosedCaptionTrackInfo _$ClosedCaptionTrackInfoFromJson(
|
|
Map<String, dynamic> json) {
|
|
return ClosedCaptionTrackInfo(
|
|
json['url'] == null ? null : Uri.parse(json['url'] as String),
|
|
json['language'] == null
|
|
? null
|
|
: Language.fromJson(json['language'] as Map<String, dynamic>),
|
|
isAutoGenerated: json['isAutoGenerated'] as bool,
|
|
format: json['format'] == null
|
|
? null
|
|
: ClosedCaptionFormat.fromJson(json['format'] as Map<String, dynamic>),
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$ClosedCaptionTrackInfoToJson(
|
|
ClosedCaptionTrackInfo instance) =>
|
|
<String, dynamic>{
|
|
'url': instance.url?.toString(),
|
|
'language': instance.language,
|
|
'isAutoGenerated': instance.isAutoGenerated,
|
|
'format': instance.format,
|
|
};
|