RazorpayCustomer constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayCustomer({
  1. required String id,
  2. required String entity,
  3. required int created_at,
  4. String? name,
  5. String? email,
  6. dynamic contact,
  7. String? gstin,
  8. IMap? notes,
  9. List<RazorpayInvoiceAddress>? shipping_address,
  10. @JsonKey(toJson: _boolToInt, fromJson: _intToBool) bool? fail_existing,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayCustomer({
  required String id,
  required String entity,
  required int created_at,
  String? name,
  String? email,
  dynamic contact, // string | number
  String? gstin,
  IMap<dynamic>? notes, // IMap<string | number>
  // shipping_address type is based on Invoices, ensure it's defined correctly there
  List<RazorpayInvoiceAddress>? shipping_address,
  @JsonKey(toJson: _boolToInt, fromJson: _intToBool)
  bool?
      fail_existing, // Although usually not in response, keep if needed based on d.ts
}) = _RazorpayCustomer;