CustomerDetails constructor
- @JsonSerializable.new(includeIfNull: false)
- required String name,
- required String contact,
- required String email,
- RazorpayInvoiceAddressInput? shipping_address,
- 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;