homeownerConsentActionDTONullableListFromJson function

List<HomeownerConsentActionDTO>? homeownerConsentActionDTONullableListFromJson(
  1. List? homeownerConsentActionDTO, [
  2. List<HomeownerConsentActionDTO>? defaultValue
])

Implementation

List<enums.HomeownerConsentActionDTO>?
    homeownerConsentActionDTONullableListFromJson(
  List? homeownerConsentActionDTO, [
  List<enums.HomeownerConsentActionDTO>? defaultValue,
]) {
  if (homeownerConsentActionDTO == null) {
    return defaultValue;
  }

  return homeownerConsentActionDTO
      .map((e) => homeownerConsentActionDTOFromJson(e.toString()))
      .toList();
}