SessionRecovery.fromJson constructor

SessionRecovery.fromJson(
  1. Object? json
)

Implementation

factory SessionRecovery.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionRecovery(
    allowPromotionCodes: map['allow_promotion_codes'] == null
        ? null
        : (map['allow_promotion_codes'] as bool),
    enabled: (map['enabled'] as bool),
  );
}