toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id,
'chat_id': chatId,
'expiration_date': expirationDate,
'is_canceled': isCanceled,
'is_expiring': isExpiring,
'pricing': pricing.toJson(),
'type': type.toJson(),
};