toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"id": id,
"usernames": usernames?.toJson(),
"date": date,
"status": status.toJson(),
"member_count": memberCount,
"has_linked_chat": hasLinkedChat,
"has_location": hasLocation,
"sign_messages": signMessages,
"join_to_send_messages": joinToSendMessages,
"join_by_request": joinByRequest,
"is_slow_mode_enabled": isSlowModeEnabled,
"is_channel": isChannel,
"is_broadcast_group": isBroadcastGroup,
"is_forum": isForum,
"is_verified": isVerified,
"restriction_reason": restrictionReason,
"is_scam": isScam,
"is_fake": isFake,
};
}