toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'messageInvoice',
    if (extra != null) '@extra': extra,
    'title': title,
    'description': description,
    'photo': photo,
    'currency': currency,
    'total_amount': total_amount,
    'start_parameter': start_parameter,
    'is_test': is_test,
    'need_shipping_address': need_shipping_address,
    'receipt_message_id': receipt_message_id,
    'extended_media': extended_media
  };
}