toJson method
Implementation
Map<String, dynamic> toJson() {
final attachTime = this.attachTime;
final attachmentId = this.attachmentId;
final deleteOnTermination = this.deleteOnTermination;
final deviceIndex = this.deviceIndex;
final instanceId = this.instanceId;
final instanceOwnerId = this.instanceOwnerId;
final status = this.status;
return {
if (attachTime != null) 'AttachTime': attachTime,
if (attachmentId != null) 'AttachmentId': attachmentId,
if (deleteOnTermination != null)
'DeleteOnTermination': deleteOnTermination,
if (deviceIndex != null) 'DeviceIndex': deviceIndex,
if (instanceId != null) 'InstanceId': instanceId,
if (instanceOwnerId != null) 'InstanceOwnerId': instanceOwnerId,
if (status != null) 'Status': status,
};
}