toListMap<T extends Model> static method
Implementation
static List<Map<String, Object>>? toListMap<T extends Model>(List<T>? list) {
if (list?.isEmpty ?? true) return null;
List<Map<String, Object>> returnList = [];
for (var element in list!) {
returnList.add(Map<String, Object>.from(element.toMap()));
}
return returnList;
}