toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (name != null) {
    _json[r'name'] = name;
  }
  if (email != null) {
    _json[r'email'] = email;
  }
  if (contactFirstName != null) {
    _json[r'contact_first_name'] = contactFirstName;
  }
  if (contactLastName != null) {
    _json[r'contact_last_name'] = contactLastName;
  }
  if (numEmployees != null) {
    _json[r'num_employees'] = numEmployees;
  }
  return _json;
}