PaymentIntentNextActionAlipayHandleRedirect.fromJson constructor

PaymentIntentNextActionAlipayHandleRedirect.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionAlipayHandleRedirect.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionAlipayHandleRedirect(
    nativeData:
        map['native_data'] == null ? null : (map['native_data'] as String),
    nativeUrl:
        map['native_url'] == null ? null : (map['native_url'] as String),
    returnUrl:
        map['return_url'] == null ? null : (map['return_url'] as String),
    url: map['url'] == null ? null : (map['url'] as String),
  );
}