desiredState method
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);
}