Animation.fromJson constructor

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

Parse from a json

Implementation

factory Animation.fromJson(Map<String, dynamic> json) => Animation(
  duration: json['duration'],
  width: json['width'],
  height: json['height'],
  fileName: json['file_name'],
  mimeType: json['mime_type'],
  hasStickers: json['has_stickers'],
  minithumbnail: json['minithumbnail'] == null ? null : Minithumbnail.fromJson(json['minithumbnail']),
  thumbnail: json['thumbnail'] == null ? null : Thumbnail.fromJson(json['thumbnail']),
  animation: File.fromJson(json['animation']),
);