toJSON method

dynamic toJSON()

Implementation

toJSON() {
  return {
    'uid': uid,
    'parent': parent,
    'toggles': toggles?.map((e) => e.toJson()).toList(),
  };
}