CreateChatDirectLink$Mutation$CreateChatDirectLink.fromJson constructor

CreateChatDirectLink$Mutation$CreateChatDirectLink.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateChatDirectLink$Mutation$CreateChatDirectLink.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatEventsVersioned':
      return CreateChatDirectLink$Mutation$CreateChatDirectLink$ChatEventsVersioned
          .fromJson(json);
    case r'CreateChatDirectLinkError':
      return CreateChatDirectLink$Mutation$CreateChatDirectLink$CreateChatDirectLinkError
          .fromJson(json);
    default:
  }
  return _$CreateChatDirectLink$Mutation$CreateChatDirectLinkFromJson(json);
}