ContactPoint constructor

ContactPoint({
  1. FixedList<Extension>? extension,
  2. String? system,
  3. String? value,
  4. String? use,
})

Constructs a new ContactPoint with optional extension, system, value and use.

Implementation

ContactPoint({
  FixedList<Extension>? extension,
  String? system,
  String? value,
  String? use,
}) : this.fromJson(
        JsonObject({
          if (extension != null)
            extensionField.name:
                JsonArray.unmodifiable(extension.map((e) => e.json)),
          if (system != null) systemField.name: JsonString(system),
          if (value != null) valueField.name: JsonString(value),
          if (use != null) useField.name: JsonString(use),
        }),
      );