homeownerConsentActionDTONullableFromJson function

HomeownerConsentActionDTO? homeownerConsentActionDTONullableFromJson(
  1. Object? homeownerConsentActionDTO, [
  2. HomeownerConsentActionDTO? defaultValue
])

Implementation

enums.HomeownerConsentActionDTO? homeownerConsentActionDTONullableFromJson(
  Object? homeownerConsentActionDTO, [
  enums.HomeownerConsentActionDTO? defaultValue,
]) {
  if (homeownerConsentActionDTO == null) {
    return null;
  }
  return enums.HomeownerConsentActionDTO.values
          .firstWhereOrNull((e) => e.value == homeownerConsentActionDTO) ??
      defaultValue;
}