FhirUri constructor

FhirUri(
  1. dynamic inValue
)

Implementation

factory FhirUri(dynamic inValue) {
  if (inValue is Uri) {
    return FhirUri._(inValue.toString(), inValue, true);
  } else if (inValue is String) {
    final Uri? tempUri = Uri.tryParse(inValue);
    return FhirUri._(inValue, tempUri, tempUri != null);
  }
  throw CannotBeConstructed<FhirUri>(
      'FhirUri cannot be constructed from $inValue.');
}