homeownerConsentActionDTOListToJson function

List<String> homeownerConsentActionDTOListToJson(
  1. List<HomeownerConsentActionDTO>? homeownerConsentActionDTO
)

Implementation

List<String> homeownerConsentActionDTOListToJson(
    List<enums.HomeownerConsentActionDTO>? homeownerConsentActionDTO) {
  if (homeownerConsentActionDTO == null) {
    return [];
  }

  return homeownerConsentActionDTO.map((e) => e.value!).toList();
}