toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'inputMessageInvoice',
if (extra != null) '@extra': extra,
'invoice': invoice,
'title': title,
'description': description,
'photo_url': photo_url,
'photo_size': photo_size,
'photo_width': photo_width,
'photo_height': photo_height,
'payload': payload,
'provider_token': provider_token,
'provider_data': provider_data,
'start_parameter': start_parameter,
'extended_media_content': extended_media_content
};
}