toJson method
Implementation
Map<String, Object?> toJson() {
var base = this.base;
var context = this.context;
var next = this.next;
var prev = this.prev;
var self = this.self;
final json = <String, Object?>{};
if (base != null) {
json[r'base'] = base;
}
if (context != null) {
json[r'context'] = context;
}
if (next != null) {
json[r'next'] = next;
}
if (prev != null) {
json[r'prev'] = prev;
}
if (self != null) {
json[r'self'] = self;
}
return json;
}