toJsonList static method
Converts the given list
of JsonClass
objects into JSON. If the given
list is null` then null will be returned.
Implementation
static List<Map<String, dynamic>>? toJsonList(
List<TestImage>? images, [
bool includeImageData = false,
]) {
List<Map<String, dynamic>>? result;
if (images != null) {
result = <Map<String, dynamic>>[];
for (var image in images) {
result.add(image.toJson(includeImageData));
}
}
return result;
}