toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (allowChildren != null) {
    _json[r'allowChildren'] = allowChildren;
  }
  if (expandable != null) {
    _json[r'expandable'] = expandable;
  }
  if (leaf != null) {
    _json[r'leaf'] = leaf;
  }
  if (id != null) {
    _json[r'id'] = id;
  }
  if (text != null) {
    _json[r'text'] = text;
  }
  if (context != null) {
    _json[r'context'] = context;
  }
  return _json;
}