desiredState method

Future<DesiredState?> desiredState(
  1. String id
)

What id is declared to be, or null if nothing was ever declared.

Implementation

Future<DesiredState?> desiredState(String id) async {
  final json = await _optional(() => get('/nodes/$id/desired-state'));
  return json == null ? null : DesiredState.fromJson(json);
}