SessionRecovery.fromJson constructor
SessionRecovery.fromJson(
- 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),
);
}