toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chatTypeSecret',
if (extra != null) '@extra': extra,
'secret_chat_id': secret_chat_id,
'user_id': user_id
};
}