toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final name = this.name;
final version = this.version;
return {
if (id != null) 'id': id,
if (name != null) 'name': name,
if (version != null) 'version': version,
};
}