TreasuryReceivedCreditsResourceLinkedFlowsSourceFlowDetails.fromJson constructor

TreasuryReceivedCreditsResourceLinkedFlowsSourceFlowDetails.fromJson(
  1. Object? json
)

Implementation

factory TreasuryReceivedCreditsResourceLinkedFlowsSourceFlowDetails.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryReceivedCreditsResourceLinkedFlowsSourceFlowDetails(
    creditReversal: map['credit_reversal'] == null
        ? null
        : TreasuryCreditReversal.fromJson(map['credit_reversal']),
    outboundPayment: map['outbound_payment'] == null
        ? null
        : TreasuryOutboundPayment.fromJson(map['outbound_payment']),
    payout: map['payout'] == null ? null : Payout.fromJson(map['payout']),
    type: TreasuryReceivedCreditsResourceLinkedFlowsSourceFlowDetailsType
        .fromJson(map['type']),
  );
}