fromJson static method

PolarSdkFeature fromJson(
  1. dynamic json
)

Create a PolarSdkFeature from json

Implementation

static PolarSdkFeature fromJson(dynamic json) {
  if (Platform.isIOS) {
    return PolarSdkFeature.values[json as int];
  } else {
    // This is android
    return _stringFeatureMap[json as String]!;
  }
}