AccountSessionFeatures.fromJson constructor
AccountSessionFeatures.fromJson(
- Object? json
Implementation
factory AccountSessionFeatures.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountSessionFeatures(
capturePayments: map['capture_payments'] == null
? null
: (map['capture_payments'] as bool),
destinationOnBehalfOfChargeManagement:
map['destination_on_behalf_of_charge_management'] == null
? null
: (map['destination_on_behalf_of_charge_management'] as bool),
disputeManagement: map['dispute_management'] == null
? null
: (map['dispute_management'] as bool),
refundManagement: map['refund_management'] == null
? null
: (map['refund_management'] as bool),
);
}