toJson method
Converts a DownwardAPIProjection instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempItems = items;
if (tempItems != null) {
jsonData['items'] =
tempItems.map((e) => e.toJson()).toList(growable: false);
}
return jsonData;
}