platformDTOListFromJson function
- List? platformDTO, [
- List<
PlatformDTO> ? defaultValue
Implementation
List<enums.PlatformDTO> platformDTOListFromJson(
List? platformDTO, [
List<enums.PlatformDTO>? defaultValue,
]) {
if (platformDTO == null) {
return defaultValue ?? [];
}
return platformDTO.map((e) => platformDTOFromJson(e.toString())).toList();
}