toJson method
Implementation
Map<String, dynamic> toJson() {
final iamInstanceProfileArn = this.iamInstanceProfileArn;
final imageId = this.imageId;
final ipV4Addresses = this.ipV4Addresses;
final ipV6Addresses = this.ipV6Addresses;
final keyName = this.keyName;
final launchedAt = this.launchedAt;
final subnetId = this.subnetId;
final type = this.type;
final vpcId = this.vpcId;
return {
if (iamInstanceProfileArn != null)
'IamInstanceProfileArn': iamInstanceProfileArn,
if (imageId != null) 'ImageId': imageId,
if (ipV4Addresses != null) 'IpV4Addresses': ipV4Addresses,
if (ipV6Addresses != null) 'IpV6Addresses': ipV6Addresses,
if (keyName != null) 'KeyName': keyName,
if (launchedAt != null) 'LaunchedAt': launchedAt,
if (subnetId != null) 'SubnetId': subnetId,
if (type != null) 'Type': type,
if (vpcId != null) 'VpcId': vpcId,
};
}