ChatPhotoInfo.fromJson constructor

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

Parses a ChatPhotoInfo from TDLib JSON.

Implementation

factory ChatPhotoInfo.fromJson(Map<String, dynamic> json) => ChatPhotoInfo(
  small: _readObject(json['small'], File.fromJson),
  big: _readObject(json['big'], File.fromJson),
  minithumbnail: _readOptional(json['minithumbnail'], Minithumbnail.fromJson),
  hasAnimation: _readBool(json['has_animation']),
  isPersonal: _readBool(json['is_personal']),
);