errorErrorTypeListToJson function

List<String> errorErrorTypeListToJson(
  1. List<ErrorErrorType>? errorErrorType
)

Implementation

List<String> errorErrorTypeListToJson(
    List<enums.ErrorErrorType>? errorErrorType) {
  if (errorErrorType == null) {
    return [];
  }

  return errorErrorType.map((e) => enums.$ErrorErrorTypeMap[e]!).toList();
}