fromJson static method
Implementation
static Thumbnail? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return Thumbnail(
format:
ThumbnailFormat.fromJson(json['format'] as Map<String, dynamic>?)!,
width: (json['width'] as int?) ?? 0,
height: (json['height'] as int?) ?? 0,
file: File.fromJson(json['file'] as Map<String, dynamic>?)!,
);
}