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<dynamic>? toJsonList(List<JsonClass>? list) {
List<dynamic>? result;
if (list != null) {
result = [];
for (var j in list) {
result.add(j.toJson());
}
}
return result;
}