homeownerConsentActionDTOFromJson function

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

Implementation

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