toJson method
Implementation
Map<String, Object?> toJson() {
var callback = this.callback;
var items = this.items;
var maxResults = this.maxResults;
var pagingCallback = this.pagingCallback;
var size = this.size;
final json = <String, Object?>{};
if (callback != null) {
json[r'callback'] = callback.toJson();
}
json[r'items'] = items.map((i) => i.toJson()).toList();
if (maxResults != null) {
json[r'max-results'] = maxResults;
}
if (pagingCallback != null) {
json[r'pagingCallback'] = pagingCallback.toJson();
}
if (size != null) {
json[r'size'] = size;
}
return json;
}