BasicGroupFullInfo.fromJson constructor
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()),
canHideMembers: json['can_hide_members'],
canToggleAggressiveAntiSpam: json['can_toggle_aggressive_anti_spam'],
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'],
);