toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var links = this.links;
  var buildChangeSet = this.buildChangeSet;
  var buildDate = this.buildDate;
  var isLicensedForUse = this.isLicensedForUse;
  var platformVersion = this.platformVersion;
  var version = this.version;

  final json = <String, Object?>{};
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  if (buildChangeSet != null) {
    json[r'buildChangeSet'] = buildChangeSet;
  }
  if (buildDate != null) {
    json[r'buildDate'] = buildDate.toJson();
  }
  json[r'isLicensedForUse'] = isLicensedForUse;
  if (platformVersion != null) {
    json[r'platformVersion'] = platformVersion;
  }
  if (version != null) {
    json[r'version'] = version;
  }
  return json;
}