switchStateV2FromJson function

SwitchStateV2 switchStateV2FromJson(
  1. Object? switchStateV2, [
  2. SwitchStateV2? defaultValue
])

Implementation

enums.SwitchStateV2 switchStateV2FromJson(
  Object? switchStateV2, [
  enums.SwitchStateV2? defaultValue,
]) {
  return enums.SwitchStateV2.values
          .firstWhereOrNull((e) => e.value == switchStateV2) ??
      defaultValue ??
      enums.SwitchStateV2.swaggerGeneratedUnknown;
}