FhirId.fromJson constructor

FhirId.fromJson(
  1. Map<String, dynamic> json
)

Constructs a FhirId from a JSON Map.

Implementation

factory FhirId.fromJson(Map<String, dynamic> json) {
  final rawValue = json['value'] as String?;
  final elementJson = json['_value'] as Map<String, dynamic>?;
  final parsedElement =
      elementJson == null ? null : Element.fromJson(elementJson);

  return FhirId(rawValue, element: parsedElement);
}