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