Supergroup.fromJson constructor
Parse from a json
Implementation
factory Supergroup.fromJson(Map<String, dynamic> json) => Supergroup(
id: json['id'],
username: json['username'],
date: json['date'],
status: ChatMemberStatus.fromJson(json['status']),
memberCount: json['member_count'],
hasLinkedChat: json['has_linked_chat'],
hasLocation: json['has_location'],
signMessages: json['sign_messages'],
isSlowModeEnabled: json['is_slow_mode_enabled'],
isChannel: json['is_channel'],
isBroadcastGroup: json['is_broadcast_group'],
isVerified: json['is_verified'],
restrictionReason: json['restriction_reason'],
isScam: json['is_scam'],
isFake: json['is_fake'],
extra: json['@extra'],
clientId: json['@client_id'],
);