toJson method
Produces a Map that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() {
return {
...?unknown,
if (name != null) 'name': name,
if (compiler != null) 'compiler': compiler,
if (version != null) 'version': version,
if (rawDescription != null) 'raw_description': rawDescription,
if (build != null) 'build': build,
};
}