toMap method
Implementation
Map<String, dynamic> toMap() {
HashMap<String, dynamic> dic = HashMap();
dic['url'] = url;
if (resolution != null) {
dic['resolution'] = resolution!.index;
}
if (bitrate != null) {
dic['bitrate'] = bitrate;
}
if (protocol != null) {
dic['protocol'] = protocol!.index;
}
if (format != null) {
dic['format'] = format!.index;
}
if (type != null) {
dic['type'] = type!.index;
}
return dic;
}