VideoProfile.fromMap constructor
VideoProfile.fromMap(
- Map<String, dynamic> map
)
Implementation
factory VideoProfile.fromMap(
Map<String, dynamic> map,
) {
map = {
'\$id': "",
'\$createdAt': "",
'\$updatedAt': "",
'name': "",
'codec': "h264",
'videoBitRate': 0,
'audioBitRate': 0,
'width': 0,
'height': 0,
...map,
};
return VideoProfile(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'].toString(),
codec: enums.VideoCodecId.values.firstWhere(
(e) => e.value == map['codec'],
),
videoBitRate: map['videoBitRate'],
audioBitRate: map['audioBitRate'],
width: map['width'],
height: map['height'],
);
}