from static method
Implementation
static RequestDoc? from(TransactionDoc tx) {
if (!(tx.action?.name == 'm10.Request')) {
return null;
}
try {
final payment = PaymentRequest.fromBuffer(tx.action!.payload);
return RequestDoc(tx, payment);
} catch (e) {
return null;
}
}