fromJson static method

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

Creates a object from a json

Implementation

static 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']!,
  );
}