toJson method
Implementation
Map<String, Object?> toJson() {
var favourited = this.favourited;
var lastmodified = this.lastmodified;
var lastcontributed = this.lastcontributed;
var viewed = this.viewed;
var scheduled = this.scheduled;
final json = <String, Object?>{};
if (favourited != null) {
json[r'favourited'] = favourited;
}
if (lastmodified != null) {
json[r'lastmodified'] = lastmodified;
}
if (lastcontributed != null) {
json[r'lastcontributed'] = lastcontributed;
}
if (viewed != null) {
json[r'viewed'] = viewed;
}
if (scheduled != null) {
json[r'scheduled'] = scheduled;
}
return json;
}