BasicGroupFullInfo.fromJson constructor

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

Parse from a json

Implementation

factory BasicGroupFullInfo.fromJson(Map<String, dynamic> json) => BasicGroupFullInfo(
  photo: json['photo'] == null ? null : ChatPhoto.fromJson(json['photo']),
  description: json['description'],
  creatorUserId: json['creator_user_id'],
  members: List<ChatMember>.from((json['members'] ?? []).map((item) => ChatMember.fromJson(item)).toList()),
  inviteLink: json['invite_link'] == null ? null : ChatInviteLink.fromJson(json['invite_link']),
  botCommands: List<BotCommands>.from((json['bot_commands'] ?? []).map((item) => BotCommands.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);