homeownerConsentActionV2FromJson function

HomeownerConsentActionV2 homeownerConsentActionV2FromJson(
  1. Object? homeownerConsentActionV2, [
  2. HomeownerConsentActionV2? defaultValue
])

Implementation

enums.HomeownerConsentActionV2 homeownerConsentActionV2FromJson(
  Object? homeownerConsentActionV2, [
  enums.HomeownerConsentActionV2? defaultValue,
]) {
  return enums.HomeownerConsentActionV2.values
          .firstWhereOrNull((e) => e.value == homeownerConsentActionV2) ??
      defaultValue ??
      enums.HomeownerConsentActionV2.swaggerGeneratedUnknown;
}