fromJson static method

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

Creates a object from a json

Implementation

static Animation fromJson(Map<String, dynamic> json) {
  return Animation(
    fileId: json['file_id']!,
    fileUniqueId: json['file_unique_id']!,
    width: json['width']!,
    height: json['height']!,
    duration: json['duration']!,
    thumb: callIfNotNull(PhotoSize.fromJson, json['thumb']),
    fileName: json['file_name'],
    mimeType: json['mime_type'],
    fileSize: json['file_size'],
  );
}