UpdateChatPhoto.fromJson constructor

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

Parse from a json

Implementation

factory UpdateChatPhoto.fromJson(Map<String, dynamic> json) =>
    UpdateChatPhoto(
      chatId: json['chat_id'],
      photo: json['photo'] == null
          ? null
          : ChatPhotoInfo.fromJson(json['photo']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );