TopicPreference.fromJson constructor

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

Implementation

factory TopicPreference.fromJson(Map<String, dynamic> json) {
  return TopicPreference(
    subscriptionStatus:
        (json['SubscriptionStatus'] as String).toSubscriptionStatus(),
    topicName: json['TopicName'] as String,
  );
}