31 lines
983 B
Dart
31 lines
983 B
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'closed_caption.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
ClosedCaption _$ClosedCaptionFromJson(Map<String, dynamic> json) {
|
||
|
return ClosedCaption(
|
||
|
json['text'] as String,
|
||
|
json['offset'] == null
|
||
|
? null
|
||
|
: Duration(microseconds: json['offset'] as int),
|
||
|
json['duration'] == null
|
||
|
? null
|
||
|
: Duration(microseconds: json['duration'] as int),
|
||
|
(json['parts'] as List)?.map((e) => e == null
|
||
|
? null
|
||
|
: ClosedCaptionPart.fromJson(e as Map<String, dynamic>)),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> _$ClosedCaptionToJson(ClosedCaption instance) =>
|
||
|
<String, dynamic>{
|
||
|
'text': instance.text,
|
||
|
'offset': instance.offset?.inMicroseconds,
|
||
|
'duration': instance.duration?.inMicroseconds,
|
||
|
'parts': instance.parts,
|
||
|
};
|