toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
if (displayName.isNotDefault) 'displayName': displayName,
'resourcePools': [for (final i in resourcePools) i.toJson()],
if (state.isNotDefault) 'state': state.toJson(),
'error': ?error?.toJson(),
'createTime': ?createTime?.toJson(),
'startTime': ?startTime?.toJson(),
'updateTime': ?updateTime?.toJson(),
if (labels.isNotDefault) 'labels': labels,
if (network.isNotDefault) 'network': network,
'pscInterfaceConfig': ?pscInterfaceConfig?.toJson(),
'encryptionSpec': ?encryptionSpec?.toJson(),
'resourceRuntimeSpec': ?resourceRuntimeSpec?.toJson(),
'resourceRuntime': ?resourceRuntime?.toJson(),
if (reservedIpRanges.isNotDefault) 'reservedIpRanges': reservedIpRanges,
if (satisfiesPzs.isNotDefault) 'satisfiesPzs': satisfiesPzs,
if (satisfiesPzi.isNotDefault) 'satisfiesPzi': satisfiesPzi,
};