AccountSessionComponents.fromJson constructor
AccountSessionComponents.fromJson(
- Object? json
Implementation
factory AccountSessionComponents.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountSessionComponents(
accountOnboarding: map['account_onboarding'] == null
? null
: AccountSessionAccountOnboarding.fromJson(map['account_onboarding']),
documents: map['documents'] == null
? null
: AccountSessionAccountOnboarding.fromJson(map['documents']),
paymentDetails: map['payment_details'] == null
? null
: AccountSessionPaymentDetails.fromJson(map['payment_details']),
payments: map['payments'] == null
? null
: AccountSessionPaymentDetails.fromJson(map['payments']),
payouts: map['payouts'] == null
? null
: AccountSessionPayouts.fromJson(map['payouts']),
);
}