RequestIdStr.fromJson constructor

RequestIdStr.fromJson(
  1. Object? value
)

Implementation

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