toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.currentVersion != null) {
json[r'currentVersion'] = this.currentVersion;
} else {
json[r'currentVersion'] = null;
}
if (this.lastUpdatedAt != null) {
json[r'lastUpdatedAt'] = this.lastUpdatedAt;
} else {
json[r'lastUpdatedAt'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.versions != null) {
json[r'versions'] = this.versions;
} else {
json[r'versions'] = null;
}
return json;
}