fromJson static method

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

Implementation

static PaymentResult? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PaymentResult(
    success: (json['success'] as bool?) ?? false,
    verificationUrl: (json['verification_url'] as String?) ?? '',
  );
}