decode static method

Implementation

static LocationComponentSettings decode(Object result) {
  result as List<Object?>;
  return LocationComponentSettings(
    enabled: result[0] as bool?,
    pulsingEnabled: result[1] as bool?,
    pulsingColor: result[2] as int?,
    pulsingMaxRadius: result[3] as double?,
    showAccuracyRing: result[4] as bool?,
    accuracyRingColor: result[5] as int?,
    accuracyRingBorderColor: result[6] as int?,
    layerAbove: result[7] as String?,
    layerBelow: result[8] as String?,
    puckBearingEnabled: result[9] as bool?,
    puckBearing: result[10] as PuckBearing?,
    slot: result[11] as String?,
    locationPuck: result[12] as LocationPuck?,
  );
}