Organization constructor
Organization({})
Constructs a new Organization.
Implementation
Organization({
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,
}) : super._internal(
JsonObject({
if (id != null) Resource.idField.name: JsonString(id),
if (meta != null) Resource.metaField.name: meta.json,
if (identifier != null)
identifierField.name:
JsonArray.unmodifiable(identifier.map((e) => e.json)),
if (type != null)
typeField.name: JsonArray.unmodifiable(type.map((e) => e.json)),
if (name != null) nameField.name: JsonString(name),
if (alias != null) aliasField.name: JsonString(alias),
if (telecom != null)
telecomField.name:
JsonArray.unmodifiable(telecom.map((e) => e.json)),
if (address != null)
addressField.name:
JsonArray.unmodifiable(address.map((e) => e.json)),
if (partOf != null) partOfField.name: partOf.json,
if (contact != null)
contactField.name:
JsonArray.unmodifiable(contact.map((e) => e.json)),
if (endpoint != null)
endpointField.name:
JsonArray.unmodifiable(endpoint.map((e) => e.json)),
if (active != null) activeField.name: JsonBoolean(active),
}),
);