ErrorCodeOther.fromJson constructor

ErrorCodeOther.fromJson(
  1. Object? value
)

Implementation

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