toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var settings = this.settings;
  var metadata = this.metadata;
  var operations = this.operations;
  var lookAndFeel = this.lookAndFeel;
  var permissions = this.permissions;
  var icon = this.icon;
  var description = this.description;
  var theme = this.theme;
  var history = this.history;
  var homepage = this.homepage;
  var identifiers = this.identifiers;

  final json = <String, Object?>{};
  if (settings != null) {
    json[r'settings'] = settings;
  }
  if (metadata != null) {
    json[r'metadata'] = metadata;
  }
  if (operations != null) {
    json[r'operations'] = operations;
  }
  if (lookAndFeel != null) {
    json[r'lookAndFeel'] = lookAndFeel;
  }
  if (permissions != null) {
    json[r'permissions'] = permissions;
  }
  if (icon != null) {
    json[r'icon'] = icon;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (theme != null) {
    json[r'theme'] = theme;
  }
  if (history != null) {
    json[r'history'] = history;
  }
  if (homepage != null) {
    json[r'homepage'] = homepage;
  }
  if (identifiers != null) {
    json[r'identifiers'] = identifiers;
  }
  return json;
}