toJson method

Map<String, dynamic> toJson()

转换为JSON

Implementation

Map<String, dynamic> toJson() {
  return {'label': label, 'value': value, 'hasChildren': hasChildren, 'disabled': disabled, 'children': children?.map((child) => child.toJson()).toList(), 'data': data};
}