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