RHSubscriber class

Represents a subscriber in the ReferralHero system.

This class encapsulates all the necessary details about a subscriber, including personal information, referral status, and associated metadata.

Constructors

RHSubscriber({required String id, required String name, required String email, required String phoneNumber, required String cryptoWalletAddress, required String cryptoWalletProvider, required String otherIdentifierValue, required String extraField, required String extraField2, required String extraField3, required String extraField4, required String optionField, required double conversionAmount, required String code, required int position, required bool referred, required Map<String, dynamic>? referredBy, required int pendingReferrals, required int unconfirmedReferrals, required int peopleReferred, required int level2ConfirmedReferrals, required int level3ConfirmedReferrals, required bool promoted, DateTime? promotedAt, required bool verified, required DateTime? verifiedAt, required int points, required int riskLevel, required String host, String? source, String? device, required String referralLink, required DateTime createdAt, required DateTime lastUpdatedAt, String? osType, String? screenSize, String? ipAddress, required String universalLink, required String status, required String response})
Creates a new RHSubscriber instance with the specified details.
RHSubscriber.fromJson(Map<String, dynamic> json)
Creates a new RHSubscriber instance from a JSON object.
factory

Properties

code String
The referral code associated with the subscriber.
final
conversionAmount double
The monetary conversion amount associated with the subscriber.
final
createdAt DateTime
The date and time when the subscriber was created.
final
cryptoWalletAddress String
The crypto wallet address of the subscriber.
final
cryptoWalletProvider String
The provider of the subscriber's crypto wallet.
final
device String?
The device used by the subscriber.
final
email String
The email address of the subscriber.
final
extraField String
An extra field associated with the subscriber.
final
extraField2 String
A second extra field associated with the subscriber.
final
extraField3 String
A third extra field associated with the subscriber.
final
extraField4 String
A fourth extra field associated with the subscriber.
final
hashCode int
The hash code for this object.
no setterinherited
host String
The host associated with the subscriber.
final
id String
The unique identifier of the subscriber.
final
ipAddress String?
The IP address of the subscriber's device.
final
lastUpdatedAt DateTime
The date and time when the subscriber's information was last updated.
final
level2ConfirmedReferrals int
The number of confirmed level 2 referrals.
final
level3ConfirmedReferrals int
The number of confirmed level 3 referrals.
final
name String
The name of the subscriber.
final
optionField String
An optional field associated with the subscriber.
final
osType String?
The operating system type of the subscriber's device.
final
otherIdentifierValue String
The value of any additional identifier associated with the subscriber.
final
pendingReferrals int
The number of pending referrals for the subscriber.
final
peopleReferred int
The number of people referred by the subscriber.
final
phoneNumber String
The phone number of the subscriber.
final
points int
The number of points accumulated by the subscriber.
final
position int
The subscriber's position in a leaderboard or ranking system.
final
Whether the subscriber has been promoted in the system.
final
promotedAt DateTime?
The date and time when the subscriber was promoted.
final
The referral link associated with the subscriber.
final
referred bool
Whether the subscriber has been referred by another user.
final
referredBy Map<String, dynamic>?
A map containing information about the subscriber's referrer, if any.
final
response String
The response received after processing the subscriber's data.
final
riskLevel int
The risk level associated with the subscriber.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize String?
The screen size of the subscriber's device.
final
source String?
The source through which the subscriber was acquired.
final
status String
The status of the subscriber in the system.
final
unconfirmedReferrals int
The number of unconfirmed referrals for the subscriber.
final
The universal link associated with the subscriber.
final
verified bool
Whether the subscriber has been verified in the system.
final
verifiedAt DateTime?
The date and time when the subscriber was verified.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited