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