CreateUserDirectLink$Mutation$CreateChatDirectLink.fromJson constructor

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

Implementation

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