fromJson static method
Inherited by: ChatRevenueTransactionTypeFragmentRefund ChatRevenueTransactionTypeFragmentWithdrawal ChatRevenueTransactionTypeSponsoredMessageEarnings ChatRevenueTransactionTypeSuggestedPostEarnings ChatRevenueTransactionTypeUnsupported
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(tdMapFromJson(json['state'])),
);
}