decode static method

Implementation

static ActivityRecognitionConfig decode(Object result) {
  result as List<Object?>;
  return ActivityRecognitionConfig(
    runForegroundService: result[0]! as bool,
  );
}