ConversationKey.fromJson constructor

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

Create from JSON.

Implementation

factory ConversationKey.fromJson(Map<String, dynamic> json) {
  return ConversationKey(
    channel:
        ChannelIdentity.fromJson(json['channel'] as Map<String, dynamic>),
    conversationId: json['conversationId'] as String,
    userId: json['userId'] as String?,
  );
}