toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.paymentMethod != null) {
    json[r'payment_method'] = this.paymentMethod;
  } else {
    json[r'payment_method'] = null;
  }
  if (this.plan != null) {
    json[r'plan'] = this.plan;
  } else {
    json[r'plan'] = null;
  }
  if (this.billingAddress != null) {
    json[r'billing_address'] = this.billingAddress;
  } else {
    json[r'billing_address'] = null;
  }
  return json;
}