RazorpayAccount constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayAccount({
  1. required String id,
  2. required String email,
  3. required Profile profile,
  4. required dynamic phone,
  5. required String business_type,
  6. required String legal_business_name,
  7. required String contact_name,
  8. required bool live,
  9. required bool hold_funds,
  10. required String status,
  11. required int created_at,
  12. String? type,
  13. String? reference_id,
  14. String? customer_facing_business_name,
  15. LegalInfo? legal_info,
  16. Apps? apps,
  17. Brand? brand,
  18. ContactInfoSupport? contact_info,
  19. IMap? notes,
  20. int? activated_at,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayAccount({
  required String id,
  required String email,
  required Profile profile,
  required dynamic phone,
  required String business_type,
  required String legal_business_name,
  required String contact_name,
  required bool live,
  required bool hold_funds,
  required String status,
  required int created_at, // string | number
  String? type,
  String? reference_id,
  String? customer_facing_business_name,
  LegalInfo? legal_info,
  Apps? apps,
  Brand? brand,
  ContactInfoSupport? contact_info,
  IMap<dynamic>? notes, // IMap<string | number>
  int? activated_at, // Use nullable int for potential null Unix timestamp
}) = _RazorpayAccount;