parseState method

  1. @override
FeatureState parseState(
  1. String state
)
override

This override is required to map correctly between the string values in the JSON and the state values of the choosen data type

Implementation

@override
FeatureState parseState(String state) {
  return _jsonStateToFeatureStateMap[state] ?? defaultState;
}