Map<String, dynamic> toJson() { return { 'id': id, 'name': name, 'type': type, 'version': version, }; }