EventTopic.fromJson constructor

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

Implementation

factory EventTopic.fromJson(Map<String, dynamic> json) {
  return EventTopic(
    createdDateTime: timeStampFromJson(json['CreatedDateTime']),
    directoryId: json['DirectoryId'] as String?,
    status: (json['Status'] as String?)?.toTopicStatus(),
    topicArn: json['TopicArn'] as String?,
    topicName: json['TopicName'] as String?,
  );
}