toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "title": title,
    "description": description.toJson(),
    "photo": photo?.toJson(),
    "currency": currency,
    "total_amount": totalAmount,
    "start_parameter": startParameter,
    "is_test": isTest,
    "need_shipping_address": needShippingAddress,
    "receipt_message_id": receiptMessageId,
    "extended_media": extendedMedia?.toJson(),
  };
}