toString method
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() {
final $contents = [
if (affinityCookieTtlSec != null)
'affinityCookieTtlSec=$affinityCookieTtlSec',
if (compressionMode != null) 'compressionMode=$compressionMode',
if (creationTimestamp != null) 'creationTimestamp=$creationTimestamp',
if (description != null) 'description=$description',
if (edgeSecurityPolicy != null) 'edgeSecurityPolicy=$edgeSecurityPolicy',
if (enableCDN != null) 'enableCDN=$enableCDN',
if (externalManagedMigrationState != null)
'externalManagedMigrationState=$externalManagedMigrationState',
if (externalManagedMigrationTestingPercentage != null)
'externalManagedMigrationTestingPercentage=$externalManagedMigrationTestingPercentage',
if (fingerprint != null) 'fingerprint=$fingerprint',
if (id != null) 'id=$id',
if (ipAddressSelectionPolicy != null)
'ipAddressSelectionPolicy=$ipAddressSelectionPolicy',
if (kind != null) 'kind=$kind',
if (loadBalancingScheme != null)
'loadBalancingScheme=$loadBalancingScheme',
if (localityLbPolicy != null) 'localityLbPolicy=$localityLbPolicy',
if (name != null) 'name=$name',
if (network != null) 'network=$network',
if (port != null) 'port=$port',
if (portName != null) 'portName=$portName',
if (protocol != null) 'protocol=$protocol',
if (region != null) 'region=$region',
if (securityPolicy != null) 'securityPolicy=$securityPolicy',
if (selfLink != null) 'selfLink=$selfLink',
if (serviceLbPolicy != null) 'serviceLbPolicy=$serviceLbPolicy',
if (sessionAffinity != null) 'sessionAffinity=$sessionAffinity',
if (timeoutSec != null) 'timeoutSec=$timeoutSec',
].join(',');
return 'BackendService(${$contents})';
}