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