tagOperationDTOListFromJson function

List<TagOperationDTO> tagOperationDTOListFromJson(
  1. List? tagOperationDTO, [
  2. List<TagOperationDTO>? defaultValue
])

Implementation

List<enums.TagOperationDTO> tagOperationDTOListFromJson(
  List? tagOperationDTO, [
  List<enums.TagOperationDTO>? defaultValue,
]) {
  if (tagOperationDTO == null) {
    return defaultValue ?? [];
  }

  return tagOperationDTO
      .map((e) => tagOperationDTOFromJson(e.toString()))
      .toList();
}