peripheralV2PathParamNullableFromJson function
- Object? peripheralV2PathParam, [
- PeripheralV2PathParam? defaultValue
Implementation
enums.PeripheralV2PathParam? peripheralV2PathParamNullableFromJson(
Object? peripheralV2PathParam, [
enums.PeripheralV2PathParam? defaultValue,
]) {
if (peripheralV2PathParam == null) {
return null;
}
return enums.PeripheralV2PathParam.values
.firstWhereOrNull((e) => e.value == peripheralV2PathParam) ??
defaultValue;
}