VideoModelImpl.fromMap constructor
Create VideoModel from Map
Implementation
factory VideoModelImpl.fromMap(Map<String, dynamic> map) {
return VideoModelImpl(
vid: map['vid'],
duration: map['duration'],
// title: map['title'],
supportedResolutions: (map['supportedResolutions'] as List<dynamic>?)
?.map((e) => TTVideoEngineResolutionType.transFromValue(e as int))
.toList(),
// metaData: map['metaData'] as Map<String, dynamic>?,
);
}