LiqPayOrder.fromJson constructor
LiqPayOrder.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LiqPayOrder.fromJson(Map<String, dynamic> json) => LiqPayOrder(
json['order_id'] as String,
json['amount'] as double,
json['description'] as String,
serverUrl: json['server_url'],
resultUrl: json['result_url'],
rroInfo: json['rro_info'] != null
? LiqPayRroInfo.fromJson(json['rro_info'] as Map<String, dynamic>)
: null,
expiredDate: json['expired_date'] != null
? DateTime.parse(json['expired_date'] as String)
: null,
verifyCode: json['verifycode'] as String?,
card: LiqPayCard(
json['card'] as String,
json['card_exp_month'] as String,
json['card_exp_year'] as String,
json['card_cvv'] as String,
),
action: LiqPayAction.fromValue(json['action'] as String?),
currency: LiqPayCurrency.fromValue(json['currency'] as String?),
);