core.Map<core.String, core.dynamic> toJson() => { if (algorithm != null) 'algorithm': algorithm!, if (protectionLevel != null) 'protectionLevel': protectionLevel!, };