@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'major': major ?? -1, 'minor': minor ?? -1, };