IntentData.fromJson constructor

IntentData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IntentData.fromJson(Map<String, dynamic> json) {
  return IntentData(
    amount: json['amount'] != null ? AmountData.fromJson(json['amount']) : null,
    secret: json['secret'],
    expirationDate: json['expiration_date'] ?? json['expirationDate'],
    isLive: json['is_live'] ?? json['isLive'],
    id: json['id'],
    status: json['status'] != null ? IntentStatusExtension.fromJson(json['status']) : null,
  );
}