toJson method

Map<String, dynamic> toJson()

Implementation

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