fromJson static method

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

Implementation

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

  return OnRampPaymentSession(
    sessionId: (json['session_id'] as String?) ?? '',
    expirationDate: (json['expiration_date'] as int?) ?? 0,
    url: (json['url'] as String?) ?? '',
  );
}