ok property
Sample
get
ok
Returns the sample if this is an ok reply.
Throws StateError if this is an error reply.
Implementation
Sample get ok {
if (_sample == null) {
throw StateError('Cannot access ok on an error reply');
}
return _sample;
}