fromMap static method

RotationSettings fromMap(
  1. Map? map
)

Implementation

static RotationSettings fromMap(Map? map) {
  if (map == null) return RotationSettings();
  return RotationSettings(
    mode: rotationModeFromName(map['mode']),
    roundRobinIndex: map['roundRobinIndex'] ?? 0,
  );
}