PaymentKey.fromJson constructor

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

Implementation

factory PaymentKey.fromJson(Map<String, dynamic> json) {
  return PaymentKey(
    integration: json['integration'] as int? ?? 0,
    key: json['key'] as String? ?? '',
    gatewayType: json['gateway_type'] as String?,
    iframeId: json['iframe_id'] as int?,
    orderId: json['order_id'] as int? ?? 0,
    redirectionUrl: json['redirection_url'] as String?,
    saveCard: json['save_card'] as bool? ?? false,
  );
}