ChatPhoto.fromJson constructor

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

Creates a new ChatPhoto object from json.

Implementation

factory ChatPhoto.fromJson(Map<String, dynamic> json) {
  return ChatPhoto(
    smallFileId: json['small_file_id'],
    smallFileUniqueId: json['small_file_unique_id'],
    bigFileId: json['big_file_id'],
    bigFileUniqueId: json['big_file_unique_id'],
  );
}