toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (version != null) {
    _json[r'version'] = version;
  }
  if (minServerVersion != null) {
    _json[r'min_server_version'] = minServerVersion;
  }
  if (backend != null) {
    _json[r'backend'] = backend;
  }
  if (server != null) {
    _json[r'server'] = server;
  }
  if (webapp != null) {
    _json[r'webapp'] = webapp;
  }
  if (settingsSchema != null) {
    _json[r'settings_schema'] = settingsSchema;
  }
  return _json;
}