toJson method
Implementation
Map<String, dynamic> toJson() {
final attributes = this.attributes;
final name = this.name;
final next = this.next;
return {
'attributes': attributes,
'name': name,
if (next != null) 'next': next,
};
}