of static method
Returns the ActivityType for the given activity type value. The value must be one of the defined values supported by the NXFit API. If the value is not supported, ActivityType.other is returned.
Implementation
static ActivityType of(final String activityTypeValue) {
try {
return values.singleWhere((v) => v.value == activityTypeValue);
} on StateError {
logger.severe("Unknown activity type: $activityTypeValue");
return ActivityType.other;
}
}