GetSmartMachineStatusResponse constructor

GetSmartMachineStatusResponse({
  1. ProvisioningInfo? provisioningInfo,
  2. bool? hasSmartMachineCredentials,
  3. bool? isOnline,
  4. NetworkInfo? latestConnectionAttempt,
  5. Iterable<String>? errors,
})

Implementation

factory GetSmartMachineStatusResponse({
  ProvisioningInfo? provisioningInfo,
  $core.bool? hasSmartMachineCredentials,
  $core.bool? isOnline,
  NetworkInfo? latestConnectionAttempt,
  $core.Iterable<$core.String>? errors,
}) {
  final $result = create();
  if (provisioningInfo != null) {
    $result.provisioningInfo = provisioningInfo;
  }
  if (hasSmartMachineCredentials != null) {
    $result.hasSmartMachineCredentials = hasSmartMachineCredentials;
  }
  if (isOnline != null) {
    $result.isOnline = isOnline;
  }
  if (latestConnectionAttempt != null) {
    $result.latestConnectionAttempt = latestConnectionAttempt;
  }
  if (errors != null) {
    $result.errors.addAll(errors);
  }
  return $result;
}