CustomerDetails constructor

  1. @JsonSerializable.new(includeIfNull: false)
const CustomerDetails({
  1. required String name,
  2. required String contact,
  3. required String email,
  4. RazorpayInvoiceAddressInput? shipping_address,
  5. RazorpayInvoiceAddressInput? billing_address,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory CustomerDetails({
  required String name,
  required String contact,
  required String email,
  // Partial<Invoices.RazorpayInvoiceAddress> -> Make fields nullable
  RazorpayInvoiceAddressInput? shipping_address,
  RazorpayInvoiceAddressInput? billing_address,
}) = _CustomerDetails;