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