create static method

CustomerDetails create({
  1. String? special_type,
  2. String? first_name,
  3. String? last_name,
  4. String? email,
  5. String? phone,
  6. String? notes,
  7. List<String>? customer_details_required_fields,
})
override

return original data json

Implementation

static CustomerDetails create({

  String? special_type,
  String? first_name,
  String? last_name,
  String? email,
  String? phone,
  String? notes,
    List<String>? customer_details_required_fields,
})  {
  CustomerDetails customerDetails = CustomerDetails({

    "@type": special_type,
    "first_name": first_name,
    "last_name": last_name,
    "email": email,
    "phone": phone,
    "notes": notes,
    "customer_details_required_fields": customer_details_required_fields,


});


return customerDetails;

    }