Thumbnail.fromJson constructor

Thumbnail.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory Thumbnail.fromJson(Map<String, dynamic> json) => Thumbnail(
  format: ThumbnailFormat.fromJson(json['format']),
  width: json['width'],
  height: json['height'],
  file: File.fromJson(json['file']),
);