decode static method

LocationComponentSettings decode(
  1. Object result
)

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] != null ? PuckBearing.values[result[10]! as int] : null,
    locationPuck: result[11] != null
        ? LocationPuck.decode(result[11]! as List<Object?>)
        : null,
  );
}