toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'phone_number': phoneNumber,
'type': type.toJson(),
'next_type': nextType?.toJson(),
'timeout': timeout,
};