read static method

Implementation

static LiftRetVal<FeeRateException> read(Uint8List buf) {
  final index = buf.buffer.asByteData(buf.offsetInBytes).getInt32(0);
  final subview = Uint8List.view(buf.buffer, buf.offsetInBytes + 4);
  switch (index) {
    case 1:
      return ArithmeticOverflowFeeRateException.read(subview);
    default:
      throw UniffiInternalError(UniffiInternalError.unexpectedEnumCase,
          "Unable to determine enum variant");
  }
}