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