Reference constructor

Reference({
  1. String? reference,
  2. String? type,
  3. String? identifier,
  4. String? display,
})

Constructs a new Reference from a JsonObject.

Implementation

Reference({
  String? reference,
  String? type,
  String? identifier,
  String? display,
}) : this.fromJson(
        JsonObject({
          if (reference != null) 'reference': JsonString(reference),
          if (type != null) 'type': JsonString(type),
          if (identifier != null) 'identifier': JsonString(identifier),
          if (display != null) 'display': JsonString(display),
        }),
      );