ChangelogSubscriptionResult class
Confirmation result returned when subscribing an email to changelog notifications.
Returned by POST /api/v1/public/apps/:appKey/changelog/subscribe.
Example
final result = await client.subscribeToChangelog('user@example.com', userToken: token);
if (result.alreadySubscribed) {
print('User was already subscribed');
} else if (result.subscribed) {
print('Successfully subscribed to email updates!');
}
Constructors
- ChangelogSubscriptionResult({required bool subscribed, required bool alreadySubscribed})
-
Creates a ChangelogSubscriptionResult record.
const
-
ChangelogSubscriptionResult.fromJson(Map<
String, dynamic> json) -
Deserializes ChangelogSubscriptionResult from a server JSON response.
factory
Properties
- alreadySubscribed → bool
-
Whether the email address had already been subscribed previously.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscribed → bool
-
Whether the email is now actively subscribed.
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