decode static method

PigeonSensor decode(
  1. Object result
)

Implementation

static PigeonSensor decode(Object result) {
  result as List<Object?>;
  return PigeonSensor(
    position: PigeonSensorPosition.values[result[0]! as int],
    type: PigeonSensorType.values[result[1]! as int],
    deviceId: result[2] as String?,
  );
}