XenditEwalletLinkingRequest.fromJson constructor
XenditEwalletLinkingRequest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory XenditEwalletLinkingRequest.fromJson(Map<String, dynamic> json) =>
XenditEwalletLinkingRequest(
referenceId: json["reference_id"],
type: XenditIdentityAccountType.values.firstWhere(
(element) => element.name == json["type"],
),
reusability: XenditReusablePaymentMethod.values.firstWhere(
(element) => element.name == json["reusability"],
),
country: json["country"],
customerId: json["customer_id"],
customer: json["customer"],
ewallet: XenditEwallet.fromJson(json["ewallet"]),
description: json["description"],
metadata: json["metadata"],
);