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