fromRequest static method

Future<UncheckedProposal> fromRequest({
  1. required List<int> body,
  2. required String query,
  3. required Headers headers,
})

Implementation

static Future<UncheckedProposal> fromRequest({
  required List<int> body,
  required String query,
  required common.Headers headers,
}) async {
  try {
    await PConfig.initializeApp();
    final res = await FfiUncheckedProposal.fromRequest(
        body: body, query: query, headers: headers);
    return UncheckedProposal._(field0: res.field0);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}