toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var entries = this.entries;
  var moreAvailable = this.moreAvailable;
  var totalEntryCount = this.totalEntryCount;
  var totalNumberOfEntriesAvailable = this.totalNumberOfEntriesAvailable;

  final json = <String, Object?>{};
  json[r'entries'] = entries.map((i) => i.toJson()).toList();
  json[r'moreAvailable'] = moreAvailable;
  if (totalEntryCount != null) {
    json[r'totalEntryCount'] = totalEntryCount;
  }
  if (totalNumberOfEntriesAvailable != null) {
    json[r'totalNumberOfEntriesAvailable'] = totalNumberOfEntriesAvailable;
  }
  return json;
}