toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var lastUpdated = this.lastUpdated;
  var previousVersion = this.previousVersion;
  var contributors = this.contributors;
  var nextVersion = this.nextVersion;
  var ownedBy = this.ownedBy;
  var lastOwnedBy = this.lastOwnedBy;

  final json = <String, Object?>{};
  if (lastUpdated != null) {
    json[r'lastUpdated'] = lastUpdated;
  }
  if (previousVersion != null) {
    json[r'previousVersion'] = previousVersion;
  }
  if (contributors != null) {
    json[r'contributors'] = contributors;
  }
  if (nextVersion != null) {
    json[r'nextVersion'] = nextVersion;
  }
  if (ownedBy != null) {
    json[r'ownedBy'] = ownedBy;
  }
  if (lastOwnedBy != null) {
    json[r'lastOwnedBy'] = lastOwnedBy;
  }
  return json;
}