PayoutResult.fromJson constructor

PayoutResult.fromJson(
  1. Map<String, dynamic> parsedJson
)

Implementation

factory PayoutResult.fromJson(Map<String, dynamic> parsedJson) {
  dynamic intentJson = parsedJson['intent'];
  dynamic transactionJson = parsedJson['transaction'];
  return PayoutResult(
    PayoutIntent.fromJson(intentJson),
    PayoutTransaction.fromJson(transactionJson),
  );
}