ChatPhotoInfo.fromJson constructor

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

Parse from a json

Implementation

factory ChatPhotoInfo.fromJson(Map<String, dynamic> json) => ChatPhotoInfo(
  small: File.fromJson(json['small']),
  big: File.fromJson(json['big']),
  minithumbnail: json['minithumbnail'] == null ? null : Minithumbnail.fromJson(json['minithumbnail']),
  hasAnimation: json['has_animation'],
);