Map<String, dynamic> toJson() { return { if (architecture != null) 'architecture': architecture, 'coreCount': coreCount, }; }