ErrorCodeAuthenticationRequired.fromJson constructor

ErrorCodeAuthenticationRequired.fromJson(
  1. Object? value
)

Implementation

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