listInt method
get value as list of int
if required
argument is true then all the list is not null
Implementation
List<int?>? listInt(String i, [bool required = false]) {
final data = map[i];
if (data == null) {
throw HTTPException(422, 'field $i is required');
}
return data.map((e) {
int? i2 = e.toInt();
if (i2 == null && required) {
throw HTTPException(422, 'field $i is not a list of integers');
}
return i2;
}).toList();
}