toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceType = this.instanceType;
final availabilityZone = this.availabilityZone;
final logPublishingConfiguration = this.logPublishingConfiguration;
final stateDB = this.stateDB;
return {
'InstanceType': instanceType,
if (availabilityZone != null) 'AvailabilityZone': availabilityZone,
if (logPublishingConfiguration != null)
'LogPublishingConfiguration': logPublishingConfiguration,
if (stateDB != null) 'StateDB': stateDB.toValue(),
};
}