fromJson static method

ChatRevenueTransactionTypeFragmentWithdrawal? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static ChatRevenueTransactionTypeFragmentWithdrawal? fromJson(
    Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatRevenueTransactionTypeFragmentWithdrawal(
    withdrawalDate: (json['withdrawal_date'] as int?) ?? 0,
    state: RevenueWithdrawalState.fromJson(
        json['state'] as Map<String, dynamic>?)!,
  );
}