CommandSetTopic.fromJson constructor

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

Implementation

factory CommandSetTopic.fromJson(Map<String, dynamic> json) => CommandSetTopic(
  channel: json['channel'] as String,
  topic: json['topic'] == null ? null : json['topic'] as String,
);