private TaskQueueResource taskQueueFromObject(object obj) { return(TaskQueueResource.FromJson(Json.Encode(obj))); }