Topic.fromJson constructor
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?,
);
}