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