toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.author != null) {
json[r'author'] = this.author;
} else {
json[r'author'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.method != null) {
json[r'method'] = this.method;
} else {
json[r'method'] = null;
}
if (this.confidence != null) {
json[r'confidence'] = this.confidence;
} else {
json[r'confidence'] = null;
}
if (this.family != null) {
json[r'family'] = this.family;
} else {
json[r'family'] = null;
}
if (this.paramsB != null) {
json[r'params_b'] = this.paramsB;
} else {
json[r'params_b'] = null;
}
if (this.license != null) {
json[r'license'] = this.license;
} else {
json[r'license'] = null;
}
if (this.downloads != null) {
json[r'downloads'] = this.downloads;
} else {
json[r'downloads'] = null;
}
if (this.likes != null) {
json[r'likes'] = this.likes;
} else {
json[r'likes'] = null;
}
if (this.isGguf != null) {
json[r'is_gguf'] = this.isGguf;
} else {
json[r'is_gguf'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt;
} else {
json[r'created_at'] = null;
}
if (this.firstSeenAt != null) {
json[r'first_seen_at'] = this.firstSeenAt;
} else {
json[r'first_seen_at'] = null;
}
if (this.isDelisted != null) {
json[r'is_delisted'] = this.isDelisted;
} else {
json[r'is_delisted'] = null;
}
if (this.lastSeenAt != null) {
json[r'last_seen_at'] = this.lastSeenAt;
} else {
json[r'last_seen_at'] = null;
}
return json;
}