toJson method

Map<String, dynamic> toJson()

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