extApiV2DataTypeListFromJson function

List<ExtApiV2DataType> extApiV2DataTypeListFromJson(
  1. List? extApiV2DataType, [
  2. List<ExtApiV2DataType>? defaultValue
])

Implementation

List<enums.ExtApiV2DataType> extApiV2DataTypeListFromJson(
  List? extApiV2DataType, [
  List<enums.ExtApiV2DataType>? defaultValue,
]) {
  if (extApiV2DataType == null) {
    return defaultValue ?? [];
  }

  return extApiV2DataType
      .map((e) => extApiV2DataTypeFromJson(e.toString()))
      .toList();
}