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