toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'number': number,
'expiration_date': expirationDate?.toJson(),
'front_side': frontSide.toJson(),
'reverse_side': reverseSide?.toJson(),
'selfie': selfie?.toJson(),
'translation': [for (final e in translation) e.toJson()],
};