ChangelogSubscriptionResult.fromJson constructor

ChangelogSubscriptionResult.fromJson(
  1. Map<String, dynamic> json
)

Deserializes ChangelogSubscriptionResult from a server JSON response.

Implementation

factory ChangelogSubscriptionResult.fromJson(Map<String, dynamic> json) {
  return ChangelogSubscriptionResult(
    subscribed: json['subscribed'] as bool? ?? false,
    alreadySubscribed: json['alreadySubscribed'] as bool? ?? false,
  );
}