Company constructor

Company({
  1. String? name,
  2. String? id,
  3. String? industry,
})

Creates a new Company instance with optional company information.

All parameters are optional and can be set individually or through the various put methods after construction.

Parameters:

  • name - The company name
  • id - The company identifier
  • industry - The industry the company belongs to

Implementation

Company({String? name, String? id, String? industry}) {
  if (name != null) {
    companyMap["name"] = name;
  }
  if (id != null) {
    companyMap["id"] = id;
  }
  if (industry != null) {
    companyMap["industry"] = industry;
  }
}