toJson method
Implementation
Map<String, dynamic> toJson() {
final associatePublicIpAddress = this.associatePublicIpAddress;
final configureScript = this.configureScript;
final configureScriptType = this.configureScriptType;
final ec2KeyName = this.ec2KeyName;
final iamInstanceProfileName = this.iamInstanceProfileName;
final instanceType = this.instanceType;
final logicalId = this.logicalId;
final securityGroup = this.securityGroup;
final server = this.server;
final subnet = this.subnet;
final userData = this.userData;
final vpc = this.vpc;
return {
if (associatePublicIpAddress != null)
'associatePublicIpAddress': associatePublicIpAddress,
if (configureScript != null) 'configureScript': configureScript,
if (configureScriptType != null)
'configureScriptType': configureScriptType.toValue(),
if (ec2KeyName != null) 'ec2KeyName': ec2KeyName,
if (iamInstanceProfileName != null)
'iamInstanceProfileName': iamInstanceProfileName,
if (instanceType != null) 'instanceType': instanceType,
if (logicalId != null) 'logicalId': logicalId,
if (securityGroup != null) 'securityGroup': securityGroup,
if (server != null) 'server': server,
if (subnet != null) 'subnet': subnet,
if (userData != null) 'userData': userData,
if (vpc != null) 'vpc': vpc,
};
}