toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var cloudId = this.cloudId;
  var commitHash = this.commitHash;
  var baseUrl = this.baseUrl;
  var edition = this.edition;
  var siteTitle = this.siteTitle;
  var defaultLocale = this.defaultLocale;
  var defaultTimeZone = this.defaultTimeZone;

  final json = <String, Object?>{};
  json[r'cloudId'] = cloudId;
  json[r'commitHash'] = commitHash;
  if (baseUrl != null) {
    json[r'baseUrl'] = baseUrl;
  }
  if (edition != null) {
    json[r'edition'] = edition;
  }
  if (siteTitle != null) {
    json[r'siteTitle'] = siteTitle;
  }
  if (defaultLocale != null) {
    json[r'defaultLocale'] = defaultLocale;
  }
  if (defaultTimeZone != null) {
    json[r'defaultTimeZone'] = defaultTimeZone;
  }
  return json;
}