toJson method

Map<String, dynamic> toJson()

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,
  };
}