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