toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'sendPaymentForm',
    if (extra != null) '@extra': extra,
    'input_invoice': input_invoice,
    'payment_form_id': payment_form_id,
    'order_info_id': order_info_id,
    'shipping_option_id': shipping_option_id,
    'credentials': credentials,
    'tip_amount': tip_amount
  };
}