toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'elements': [for (final e in elements) e.toJson()],
'errors': [for (final e in errors) e.toJson()],
};