toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (url != null) {
map['url'] = url;
}
if (path != null) {
map['path'] = path;
}
if (content != null) {
map['content'] = content;
}
if (type != null) {
map['type'] = type;
}
if (id != null) {
map['id'] = id;
}
return map;
}