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