toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "currency": this.currency,
    "price_parts": this.priceParts.map((i) => i.toJson()).toList(),
    "is_test": this.isTest,
    "need_name": this.needName,
    "need_phone_number": this.needPhoneNumber,
    "need_email_address": this.needEmailAddress,
    "need_shipping_address": this.needShippingAddress,
    "send_phone_number_to_provider": this.sendPhoneNumberToProvider,
    "send_email_address_to_provider": this.sendEmailAddressToProvider,
    "is_flexible": this.isFlexible,
  };
}