PaymentLinkCreateOptionsRestrictions.fromJson constructor

PaymentLinkCreateOptionsRestrictions.fromJson(
  1. Object? json
)

Implementation

factory PaymentLinkCreateOptionsRestrictions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentLinkCreateOptionsRestrictions(
      completedSessions:
          PaymentLinkCompletedSessions.fromJson(map['completed_sessions']));
}