PhotoSize.fromJson constructor

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

Creates a PhotoSize object from JSON object

Implementation

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