toJson method
Implementation
Map<String, dynamic> toJson() {
final availabilityZone = this.availabilityZone;
final instanceType = this.instanceType;
final portInfoSource = this.portInfoSource;
final sourceName = this.sourceName;
final userData = this.userData;
return {
'availabilityZone': availabilityZone,
'instanceType': instanceType,
'portInfoSource': portInfoSource.toValue(),
'sourceName': sourceName,
if (userData != null) 'userData': userData,
};
}