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