toJson method
Produces a Map that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (name != null) {
json['name'] = name;
}
if (version != null) {
json['version'] = version;
}
if (rawDescription != null) {
json['raw_description'] = rawDescription;
}
return json;
}