toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.archetype != null) {
json[r'archetype'] = this.archetype;
} else {
json[r'archetype'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.forkable != null) {
json[r'forkable'] = this.forkable;
} else {
json[r'forkable'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.kind != null) {
json[r'kind'] = this.kind;
} else {
json[r'kind'] = null;
}
if (this.language != null) {
json[r'language'] = this.language;
} else {
json[r'language'] = null;
}
if (this.license != null) {
json[r'license'] = this.license;
} else {
json[r'license'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.note != null) {
json[r'note'] = this.note;
} else {
json[r'note'] = null;
}
if (this.org != null) {
json[r'org'] = this.org;
} else {
json[r'org'] = null;
}
if (this.origin != null) {
json[r'origin'] = this.origin;
} else {
json[r'origin'] = null;
}
if (this.repo != null) {
json[r'repo'] = this.repo;
} else {
json[r'repo'] = null;
}
if (this.scope != null) {
json[r'scope'] = this.scope;
} else {
json[r'scope'] = null;
}
if (this.stars != null) {
json[r'stars'] = this.stars;
} else {
json[r'stars'] = null;
}
if (this.template != null) {
json[r'template'] = this.template;
} else {
json[r'template'] = null;
}
if (this.title != null) {
json[r'title'] = this.title;
} else {
json[r'title'] = null;
}
if (this.updated != null) {
json[r'updated'] = this.updated;
} else {
json[r'updated'] = null;
}
if (this.upstream != null) {
json[r'upstream'] = this.upstream;
} else {
json[r'upstream'] = null;
}
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
return json;
}