status property
Get the status of this device deployment:
- Unregistered
- Registered
- Deployed
- NeedsRedeployment
Implementation
@JsonKey(includeFromJson: false, includeToJson: false)
DeviceDeploymentStatusTypes get status {
  // if this object has been created locally, then we know the status
  if (_status != null) return _status!;
  // if this object was create from json deserialization,
  // the $type reflects the status
  switch ($type!.split('.').last) {
    case 'Unregistered':
      return DeviceDeploymentStatusTypes.Unregistered;
    case 'Registered':
      return DeviceDeploymentStatusTypes.Registered;
    case 'Deployed':
      return DeviceDeploymentStatusTypes.Deployed;
    case 'Running':
      return DeviceDeploymentStatusTypes.Running;
    case 'NeedsRedeployment':
      return DeviceDeploymentStatusTypes.NeedsRedeployment;
    default:
      return DeviceDeploymentStatusTypes.Deployed;
  }
}
      
      set
      status
      (DeviceDeploymentStatusTypes status) 
      
    
    
Set the status of this device deployment.
Implementation
set status(DeviceDeploymentStatusTypes status) => _status = status;