fromList static method

ModelLessArray fromList(
  1. List list
)

Implementation

static ModelLessArray fromList(List list) {
  ModelLessArray arrayApiModels = ModelLessArray();
  for (var element in list) {
    if (element is Map) {
      arrayApiModels.set(ModelLess.fromDynamic(element));
    } else {
      arrayApiModels.set(element);
    }
  }

  return arrayApiModels;
}