VideoMetadata.fromJson constructor
VideoMetadata.fromJson(
- Map json_
Implementation
VideoMetadata.fromJson(core.Map json_)
: this(
duration: json_.containsKey('duration')
? json_['duration'] as core.String
: null,
isValidVast: json_.containsKey('isValidVast')
? json_['isValidVast'] as core.bool
: null,
isVpaid: json_.containsKey('isVpaid')
? json_['isVpaid'] as core.bool
: null,
mediaFiles: json_.containsKey('mediaFiles')
? (json_['mediaFiles'] as core.List)
.map((value) => MediaFile.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
skipOffset: json_.containsKey('skipOffset')
? json_['skipOffset'] as core.String
: null,
vastVersion: json_.containsKey('vastVersion')
? json_['vastVersion'] as core.String
: null,
);