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