Topic.fromJson constructor

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

Implementation

factory Topic.fromJson(Map<String, dynamic> json) {
  return Topic(
    defaultSubscriptionStatus:
        (json['DefaultSubscriptionStatus'] as String).toSubscriptionStatus(),
    displayName: json['DisplayName'] as String,
    topicName: json['TopicName'] as String,
    description: json['Description'] as String?,
  );
}