requireSuccess method
status 200: Node found
Implementation
@override
Node requireSuccess() {
if (this is NodesIdGetResponse200) {
return (this as NodesIdGetResponse200).body;
} else {
throw StateError('Expected success response, but got $this');
}
}