toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.character != null) {
json[r'character'] = this.character;
} else {
json[r'character'] = null;
}
if (this.line != null) {
json[r'line'] = this.line;
} else {
json[r'line'] = null;
}
if (this.path != null) {
json[r'path'] = this.path;
} else {
json[r'path'] = null;
}
if (this.relation != null) {
json[r'relation'] = this.relation;
} else {
json[r'relation'] = null;
}
if (this.repo != null) {
json[r'repo'] = this.repo;
} else {
json[r'repo'] = null;
}
if (this.rev != null) {
json[r'rev'] = this.rev;
} else {
json[r'rev'] = null;
}
return json;
}