toJson method
Implementation
Map toJson() => {
"id": id,
"name": name,
"children": children?.map((e) => e.toJson())?.toList(),
};
Map toJson() => {
"id": id,
"name": name,
"children": children?.map((e) => e.toJson())?.toList(),
};