homeownerConsentActionDTOListFromJson function

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

Implementation

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

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