toMapOrBool static method

dynamic toMapOrBool(
  1. Autocapture autocapture
)

Implementation

static dynamic toMapOrBool(Autocapture autocapture) {
  return switch (autocapture) {
    AutocaptureOptions() => autocapture.toMap(),
    AutocaptureEnabled() => autocapture.toMap(),
    AutocaptureDisabled() => false,
    Type() => throw UnimplementedError(),
  };
}