toJson method
Implementation
Map<String, dynamic> toJson() {
final nodeGroupId = this.nodeGroupId;
final primaryAvailabilityZone = this.primaryAvailabilityZone;
final primaryOutpostArn = this.primaryOutpostArn;
final replicaAvailabilityZones = this.replicaAvailabilityZones;
final replicaCount = this.replicaCount;
final replicaOutpostArns = this.replicaOutpostArns;
final slots = this.slots;
return {
if (nodeGroupId != null) 'NodeGroupId': nodeGroupId,
if (primaryAvailabilityZone != null)
'PrimaryAvailabilityZone': primaryAvailabilityZone,
if (primaryOutpostArn != null) 'PrimaryOutpostArn': primaryOutpostArn,
if (replicaAvailabilityZones != null)
'ReplicaAvailabilityZones': replicaAvailabilityZones,
if (replicaCount != null) 'ReplicaCount': replicaCount,
if (replicaOutpostArns != null) 'ReplicaOutpostArns': replicaOutpostArns,
if (slots != null) 'Slots': slots,
};
}