Subscriber class
Represents information about a subscriber.
Constructors
- Subscriber.new({required String firstName, required String lastName, String? dateOfBirth, String? memberId})
-
Constructs a constant instance of Subscriber, containing some subscriber's demographics,
dateOfBirth
is necessary for an eligibility check.const -
Subscriber.fromJson(Map<
String, dynamic> json) -
Constructs a constant instance of Subscriber from a JSON map.
factory
Properties
- dateOfBirth → String?
-
The date of birth of the subscriber (in the format YYYYMMDD).
final
- firstName → String
-
The first name of the subscriber.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastName → String
-
The last name of the subscriber.
final
- memberId → String?
-
Member ID of the subscriber
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object into a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited