copyWith method

Organization copyWith({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. FixedList<CodeableConcept>? type,
  5. String? name,
  6. String? alias,
  7. FixedList<ContactPoint>? telecom,
  8. FixedList<Address>? address,
  9. Reference? partOf,
  10. FixedList<Reference>? contact,
  11. FixedList<Reference>? endpoint,
  12. bool? active,
})

Creates a copy of the Organization instance and allows for non-destructive mutation.

Implementation

Organization copyWith({
  String? id,
  Meta? meta,
  FixedList<Identifier>? identifier,
  FixedList<CodeableConcept>? type,
  String? name,
  String? alias,
  FixedList<ContactPoint>? telecom,
  FixedList<Address>? address,
  Reference? partOf,
  FixedList<Reference>? contact,
  FixedList<Reference>? endpoint,
  bool? active,
}) =>
    Organization(
      id: id ?? this.id,
      meta: meta ?? this.meta,
      identifier: identifier ?? this.identifier,
      type: type ?? this.type,
      name: name ?? this.name,
      alias: alias ?? this.alias,
      telecom: telecom ?? this.telecom,
      address: address ?? this.address,
      partOf: partOf ?? this.partOf,
      contact: contact ?? this.contact,
      endpoint: endpoint ?? this.endpoint,
      active: active ?? this.active,
    );