fromString static method
- String? value
Get the CarrierInfoType from a String.
Implementation
static CarrierInfoType? fromString(String? value) {
switch (value) {
case 'service_levels':
return serviceLevels;
case 'predefined_packages':
return predefinedPackages;
case 'shipment_options':
return shipmentOptions;
case 'supported_features':
return supportedFeatures;
default:
return null;
}
}