outputNetworkFrameRemappingFramesFrameModeGetSetNullableFromJson function

OutputNetworkFrameRemappingFramesFrameModeGetSet? outputNetworkFrameRemappingFramesFrameModeGetSetNullableFromJson(
  1. Object? outputNetworkFrameRemappingFramesFrameModeGetSet, [
  2. OutputNetworkFrameRemappingFramesFrameModeGetSet? defaultValue
])

Implementation

enums.OutputNetworkFrameRemappingFramesFrameModeGetSet?
    outputNetworkFrameRemappingFramesFrameModeGetSetNullableFromJson(
  Object? outputNetworkFrameRemappingFramesFrameModeGetSet, [
  enums.OutputNetworkFrameRemappingFramesFrameModeGetSet? defaultValue,
]) {
  if (outputNetworkFrameRemappingFramesFrameModeGetSet == null) {
    return null;
  }
  return enums.OutputNetworkFrameRemappingFramesFrameModeGetSet.values
          .firstWhereOrNull((e) =>
              e.value == outputNetworkFrameRemappingFramesFrameModeGetSet) ??
      defaultValue;
}