copyWith method
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,
);