fromJson static method

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

Creates a object from a json

Implementation

static PhotoSize fromJson(Map<String, dynamic> json) {
  return PhotoSize(
    fileId: json['file_id']!,
    fileUniqueId: json['file_unique_id']!,
    height: json['height']!,
    width: json['width']!,
    fileSize: json['file_size'],
  );
}