decode method

  1. @override
void decode(
  1. String string
)
override

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'] ?? '';
}