toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (annotations != null) 'annotations': annotations!,
  if (clusterName != null) 'clusterName': clusterName!,
  if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
  if (deletionGracePeriodSeconds != null)
    'deletionGracePeriodSeconds': deletionGracePeriodSeconds!,
  if (deletionTimestamp != null) 'deletionTimestamp': deletionTimestamp!,
  if (finalizers != null) 'finalizers': finalizers!,
  if (generateName != null) 'generateName': generateName!,
  if (generation != null) 'generation': generation!,
  if (labels != null) 'labels': labels!,
  if (name != null) 'name': name!,
  if (namespace != null) 'namespace': namespace!,
  if (ownerReferences != null) 'ownerReferences': ownerReferences!,
  if (resourceVersion != null) 'resourceVersion': resourceVersion!,
  if (selfLink != null) 'selfLink': selfLink!,
  if (uid != null) 'uid': uid!,
};