DeleteChatDirectLink$Mutation$DeleteChatDirectLink.fromJson constructor

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

Implementation

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