toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotations != null) 'annotations': annotations!,
      if (appEngine != null) 'appEngine': appEngine!,
      if (cloudFunction != null) 'cloudFunction': cloudFunction!,
      if (cloudRun != null) 'cloudRun': cloudRun!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (defaultPort != null) 'defaultPort': defaultPort!,
      if (description != null) 'description': description!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (network != null) 'network': network!,
      if (networkEndpointType != null)
        'networkEndpointType': networkEndpointType!,
      if (pscData != null) 'pscData': pscData!,
      if (pscTargetService != null) 'pscTargetService': pscTargetService!,
      if (region != null) 'region': region!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (size != null) 'size': size!,
      if (subnetwork != null) 'subnetwork': subnetwork!,
      if (zone != null) 'zone': zone!,
    };