toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var all = this.all;
  var css = this.css;
  var js = this.js;
  var expandable = this.expandable;

  final json = <String, Object?>{};
  if (all != null) {
    json[r'all'] = all;
  }
  if (css != null) {
    json[r'css'] = css;
  }
  if (js != null) {
    json[r'js'] = js;
  }
  if (expandable != null) {
    json[r'_expandable'] = expandable.toJson();
  }
  return json;
}