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