toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (creatorId != null) {
    _json[r'creator_id'] = creatorId;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (email != null) {
    _json[r'email'] = email;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (numEmployees != null) {
    _json[r'num_employees'] = numEmployees;
  }
  if (contactFirstName != null) {
    _json[r'contact_first_name'] = contactFirstName;
  }
  if (contactLastName != null) {
    _json[r'contact_last_name'] = contactLastName;
  }
  if (billingAddress != null) {
    _json[r'billing_address'] = billingAddress;
  }
  if (companyAddress != null) {
    _json[r'company_address'] = companyAddress;
  }
  if (paymentMethod != null) {
    _json[r'payment_method'] = paymentMethod;
  }
  return _json;
}