toJson method
Implementation
Map<String, Object?> toJson() {
var entries = this.entries;
var id = this.id;
var mediaType = this.mediaType;
var name = this.name;
var totalEntryCount = this.totalEntryCount;
final json = <String, Object?>{};
json[r'entries'] = entries.map((i) => i.toJson()).toList();
if (id != null) {
json[r'id'] = id;
}
if (mediaType != null) {
json[r'mediaType'] = mediaType;
}
if (name != null) {
json[r'name'] = name;
}
if (totalEntryCount != null) {
json[r'totalEntryCount'] = totalEntryCount;
}
return json;
}