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