toJson method

Map<String, dynamic> toJson()

Implementation

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