FhirUrl constructor

FhirUrl(
  1. dynamic inValue
)

Implementation

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