StopReasonRefusal.fromJson constructor
StopReasonRefusal.fromJson(
- Object? value
Implementation
factory StopReasonRefusal.fromJson(Object? value) {
final decoded = StopReason.fromJson(value);
if (decoded is! StopReasonRefusal) {
throw const AcpWireDecodeException('Expected StopReasonRefusal.');
}
return decoded;
}