FhirInteger constructor
FhirInteger(
- dynamic inValue
Implementation
factory FhirInteger(dynamic inValue) {
if (inValue is int) {
return FhirInteger._(inValue.toString(), inValue, true);
} else if (inValue is num) {
return FhirInteger._(inValue.toString(), int.tryParse(inValue.toString()),
int.tryParse(inValue.toString()) != null);
}
throw CannotBeConstructed<FhirInteger>(
'Integer cannot be constructed from $inValue.');
}