fromRawValue static method
- String rawValue
Creates an instance from a raw string value.
Implementation
static IaPrescriptionInsuranceType fromRawValue(String rawValue) {
switch (rawValue) {
case 'privateInsurance':
return IaPrescriptionInsuranceType.privateInsurance;
case 'publicHealthcare':
return IaPrescriptionInsuranceType.publicHealthcare;
default:
throw ArgumentError('Unknown insurance type: $rawValue');
}
}