Organization constructor

Organization({
  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,
})

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),
        }),
      );