MerchantData.fromJson constructor
MerchantData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MerchantData.fromJson(Map<String, dynamic> json) => MerchantData(
id: json["id"] == null ? null : json["id"],
uuid: json["uuid"] == null ? null : json["uuid"],
depositUserId: json["deposit_user_id"] == null ? null : json["deposit_user_id"],
name: json["name"] == null ? null : json["name"],
description: json["description"] == null ? null : json["description"],
country: json["country"] == null ? null : json["country"],
returnPolicy: json["return_policy"] == null ? null : json["return_policy"],
shippingPolicy: json["shipping_policy"] == null ? null : json["shipping_policy"],
fullRefund: json["full_refund"],
shippingFee: json["shipping_fee"],
taxPercent: json["tax_percent"],
taxId: json["tax_id"],
contactAddress: json["contact_address"],
contactInfo: json["contact_info"],
state: json["state"] == null ? null : json["state"],
city: json["city"] == null ? null : json["city"],
streetAddress: json["street_address"] == null ? null : json["street_address"],
zip: json["zip"] == null ? null : json["zip"],
category: json["category"],
currency: json["currency"] == null ? null : json["currency"],
supportEmail: json["support_email"] == null ? null : json["support_email"],
logo: json["logo"] == null ? null : json["logo"],
meta: json["meta"],
status: json["status"] == null ? null : json["status"],
deletedAt: json["deleted_at"],
createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]),
updatedAt: json["updated_at"] == null ? null : DateTime.parse(json["updated_at"]),
walletAmount: json["wallet_amount"] == null ? null : json["wallet_amount"],
walletAmountPending: json["wallet_amount_pending"] == null ? null : json["wallet_amount_pending"],
);