ErrorCodeInternalError.fromJson constructor

ErrorCodeInternalError.fromJson(
  1. Object? value
)

Implementation

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