toJson method

Map<String, Object?> toJson()

Implementation

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

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