decode method
Implementation
@override
void decode(String string) {
Map map = json.decode(string);
url = map['url'] ?? '';
snapshotLocalPath = map['snapshotLocalPath'] ?? '';
localPath = map['local'] ?? '';
width = map['width'] ?? 0;
height = map['height'] ?? 0;
size = map['size'] ?? 0;
extra = map['extra'] ?? '';
snapshotUrl = map['poster'] ?? '';
duration = map['duration'] ?? 0;
}